package com.interest.util;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class TransFormUtil {
	public static String streamToString(InputStream inputStream) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"));
		StringBuilder stb = new StringBuilder();
		String line = null;
		while ((line = br.readLine()) != null) {
			stb.append(line);
		}
		br.close();
		return stb.toString();

	}
}
